package service.impl;

import service.CropService;
import service.entity.Crop;

/**
 * @ClassName CropServiceProxy
 * @Description TODO
 * @Author hongwuyang
 * @Date 2024/2/20 10:58
 */
public class CropServiceProxy implements CropService {

    private CropSeviceImpl cropSevice=new CropSeviceImpl();

    @Override
    public Crop makeSoybean() {
        System.out.println("栽种大豆");
        System.out.println("施肥");
        Crop crop = cropSevice.makeSoybean();
        System.out.println("大豆详情："+crop);
        return crop;
    }

    @Override
    public Crop makeWheat() {
        System.out.println("栽种小麦");
        System.out.println("施肥");
        Crop crop = cropSevice.makeWheat();
        System.out.println("小麦详情：" + crop);
        return crop;
    }
}
